package com.zbl.zblproject.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/10/16
 * 小单位
 */
@TableName("zbl_small_unit")
public class SmallUnit {

    @TableId(type = IdType.AUTO)
    private int id;

    private String name;

    public SmallUnit(){ }

    public SmallUnit(String name){
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public String toString() {
        return "SmallUnit{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

}
